package org.dromara.hm.domain.bo;

import org.dromara.hm.domain.HmOrderTransferHistory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 订单归属转移历史业务对象 hm_order_transfer_history
 *
 * @author Hzy
 * @date 2025-06-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HmOrderTransferHistory.class, reverseConvertGenerate = false)
public class HmOrderTransferHistoryBo extends BaseEntity {

    /**
     * 订单转移记录ID
     */
    @NotNull(message = "订单转移记录ID不能为空", groups = { EditGroup.class })
    private Long orderTransferHistoryId;

    /**
     * 关联的客户转移记录ID
     */
    private Long customerTransferHistoryId;

    /**
     * 销售订单ID
     */
    @NotNull(message = "销售订单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long saleOrderId;

    /**
     * 客户ID
     */
    @NotNull(message = "客户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long customerId;

    /**
     * 原销售人员ID
     */
    private Long oldSaleUser;

    /**
     * 原销售人员姓名
     */
    private String oldSaleUserName;

    /**
     * 新销售人员ID
     */
    private Long newSaleUser;

    /**
     * 新销售人员姓名
     */
    private String newSaleUserName;

    /**
     * 原销售店铺ID
     */
    private Long oldSaleDept;

    /**
     * 原销售店铺名称
     */
    private String oldSaleDeptName;

    /**
     * 新销售店铺ID
     */
    private Long newSaleDept;

    /**
     * 新销售店铺名称
     */
    private String newSaleDeptName;

    /**
     * 操作人ID
     */
    private Long operatorId;

    /**
     * 操作人姓名
     */
    private String operatorName;

    /**
     * 状态（0正常 1已撤销）
     */
    private String status;


}
